package com.cxyd.modules.wms.service;

import com.cxyd.common.service.CrudService;
import com.cxyd.common.utils.ProcResult;
import com.cxyd.modules.wms.dto.LocateDTO;
import com.cxyd.modules.wms.entity.ContainerEntity;
import com.cxyd.modules.wms.entity.LocateEntity;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 货位信息
 *
 * @author g_Cycle gengruyi01@163.com
 * @since 1.0.0 2023-04-27
 */
public interface LocateService extends CrudService<LocateEntity, LocateDTO> {
    void batchSaveLocate(int rows,int cols,int level);
    void locateDisabled(Map<String,Object> params);

    /**
     * 一键禁用（解禁）货位
     * @param ids
     * @param status 0-禁用货位 1-解禁货位
     */
    void locateDisables(List<Long> ids,Integer status);
    LocateEntity locatePreAllocation(ContainerEntity containerEntity, String contNo, String dvcNo, Date startDate, Long userId, String comment);

    List<LocateEntity> findByParams(Map<String,Object> map);
}